package com.qf.controller;

import com.qf.pojo.resp.BaseResp;
import com.qf.service.RotationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lipengg
 * @date 2021/10/26
 */
@Api(value = "轮播图",tags = "轮播图")
@RestController
@RequestMapping("/rotation")
public class RotationController {

    @Autowired
    private RotationService rotationService;

    @ApiOperation("查出所有轮播图")
    @RequestMapping(value = "/findAll",method = RequestMethod.GET)
    public BaseResp findAll(){
        return rotationService.isFindRotation();
    }
}
